package org.xp.study.springboot.entiy;


import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Email;

@Component
@ConfigurationProperties(prefix = "xp")
@Data
public class Person {
    private String name;

    @Value("#{1+2}")
    private int age;

    private String sex;
    private double height;

    private String desc;



}
